@REM :: 生成基于facebook/swift的client端接口实现代码
@REM @ECHO OFF
@REM SETLOCAL
@REM SET sh_folder="%~dp0"
@REM PUSHD %sh_folder%
@REM SET OUT_FOLDER=src\test\java
@REM IF EXIST "%OUT_FOLDER%" RMDIR  %OUT_FOLDER% /s/q

@REM @REM FOR DEBUG
@REM @REM -Xrunjdwp:transport=dt_socket,server=y,address=8000,suspend=y 

@REM java ^
@REM 	-jar target\codegen-thrift-3.5.1-SNAPSHOT-standalone.jar ^
@REM 	-ic thrift.test.original.TestInterface ^
@REM 	-rc thrift.test.original.TestInterface$BaseImpl ^
@REM 	-p thrift.test.service ^
@REM 	-o %OUT_FOLDER% ^
@REM 	-gt SERVICE
@REM POPD
@REM ENDLOCAL


:: 生成接口的基于facebook/swift的service端实现代码(decorator)
@ECHO OFF
SETLOCAL
SET sh_folder="%~dp0"
PUSHD "%sh_folder%"
SET OUT_FOLDER=src\test\java
IF EXIST "%OUT_FOLDER%" RMDIR  %OUT_FOLDER% /s/q
CALL mvn com.gitee.l0km:codegen-thrift-maven-plugin:generate@gen-decorator-service
POPD
ENDLOCAL